.login-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-image: url('../assets/images/login_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.login-background {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10%;
}

.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.login-card .ant-card-body {
  padding: 40px 32px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-title {
  font-size: 32px;
  font-weight: 600;
  color: #ff9933;
  margin: 0 0 8px 0;
  text-shadow: 0 0 20px rgba(255, 153, 51, 0.5);
}

.login-subtitle {
  font-size: 18px;
  color: #ff9933;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 0 15px rgba(255, 153, 51, 0.4);
}

.login-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-form-title {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

/* 表单样式 */
.login-container .ant-form-item {
  margin-bottom: 20px;
}

.login-container .ant-form-item-label > label {
  color: #ffffff;
  font-size: 14px;
}

.login-container .ant-input,
.login-container .ant-input-password {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
}

/* 账号输入框文字颜色强制为白色 */
.login-container .ant-input {
  color: #ffffff !important;
}

/* 确保密码输入框内部input在任意状态下保持透明并使用白色文字 */
.login-container .ant-input-password input {
  color: #ffffff !important;
  background: transparent !important;
  border: none;
  outline: none;
}

.login-container .ant-input-password input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.login-container .ant-input::placeholder
 {
  color: rgba(255, 255, 255, 0.5);
}

.login-container .ant-input:focus,
.login-container .ant-input-password:focus,
.login-container .ant-input-focused,
.login-container .ant-input-password-focused,
.login-container .ant-input.ant-input-status-error,
.login-container .ant-input.ant-input-status-warning {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.login-container .ant-input.ant-input-status-error:focus,
.login-container .ant-input.ant-input-status-warning:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.login-container .ant-input.ant-input-status-error:hover,
.login-container .ant-input.ant-input-status-warning:hover,
.login-container .ant-input-password.ant-input-status-error:hover,
.login-container .ant-input-password.ant-input-status-warning:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.login-container .ant-input:hover,
.login-container .ant-input-password:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.input-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

/* 密码输入框样式 - 与账号输入框保持一致 */
.login-container .ant-input-password {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
}

.login-container .ant-input-password::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-container .ant-input-password:focus,
.login-container .ant-input-password-focused,
.login-container .ant-input-password.ant-input-status-error,
.login-container .ant-input-password.ant-input-status-warning {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.login-container .ant-input-password.ant-input-status-error:focus,
.login-container .ant-input-password.ant-input-status-warning:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.login-container .ant-input-password.ant-input-status-error:hover,
.login-container .ant-input-password.ant-input-status-warning:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.login-container .ant-input-password:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* 强制所有状态下密码框外层保持半透明背景，避免报错/失焦时变白 */
.login-container .ant-input-password,
.login-container .ant-input-password:hover,
.login-container .ant-input-password:focus,
.login-container .ant-input-password.ant-input-status-error,
.login-container .ant-input-password.ant-input-status-error:hover,
.login-container .ant-input-password.ant-input-status-error:focus,
.login-container .ant-input-password.ant-input-status-warning,
.login-container .ant-input-password.ant-input-status-warning:hover,
.login-container .ant-input-password.ant-input-status-warning:focus,
.login-container .ant-input-affix-wrapper,
.login-container .ant-input-affix-wrapper-status-error,
.login-container .ant-input-affix-wrapper-status-warning {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* 密码输入框的眼睛图标颜色 */
.login-container .ant-input-password-icon {
  color: rgba(255, 255, 255, 0.6);
}

.login-container .ant-input-password-icon:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 按钮样式 */
.login-button {
  height: 48px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  background: #40a9ff;
  border: none;
  box-shadow: 0 4px 12px rgba(64, 169, 255, 0.3);
  transition: all 0.3s ease;
}

.login-button:hover {
  background: #69c0ff;
  box-shadow: 0 6px 16px rgba(64, 169, 255, 0.4);
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.register-button {
  height: 48px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  transition: all 0.3s ease;
}

.register-button:hover {
  border-color: #40a9ff;
  color: #40a9ff;
  background: rgba(64, 169, 255, 0.1);
  transform: translateY(-1px);
}

/* 分割线样式 */
.login-container .ant-divider {
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  border-color: rgba(255, 255, 255, 0.2);
}

.login-container .ant-divider-inner-text {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0 16px;
}

.login-container .ant-divider-horizontal.ant-divider-with-text::before,
.login-container .ant-divider-horizontal.ant-divider-with-text::after {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 1366px) {
  .login-background {
    padding-right: 5%;
  }
}

@media (max-width: 768px) {
  .login-background {
    justify-content: center;
    padding-right: 0;
  }
  
  .login-content {
    max-width: 320px;
    padding: 16px;
  }
  
  .login-card .ant-card-body {
    padding: 32px 24px 24px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .login-content {
    max-width: 280px;
    padding: 12px;
  }
  
  .login-card .ant-card-body {
    padding: 24px 20px 20px;
  }
  
  .login-title {
    font-size: 20px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
  
  .login-form-title {
    font-size: 20px;
  }
}

/* 加载状态 */
.login-container .ant-btn-loading {
  pointer-events: none;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeInUp 0.6s ease-out;
}

/* 修复文字颜色 */
.login-container {
  color: #ffffff;
}

/* 账号和密码标签样式 */
.login-container .ant-form-item-required::before {
  color: #ff4d4f !important;
}